package com.celesea.workflow.collaboration.dao;

import com.celesea.framework.dao.BaseDao;
import com.celesea.framework.dao.Filter;
import com.celesea.framework.util.Sort;
import com.celesea.workflow.collaboration.entity.Collaboration;
import com.celesea.workflow.core.entity.WorkflowNotice;
import org.apache.ibatis.annotations.Param;

/**
 * @author JackYuan
 * @create 2017-11-18 15:35
 */

public interface CollaborationDao extends BaseDao<Collaboration> {

    com.github.pagehelper.Page<WorkflowNotice> selectDraft(
            @Param("filter") Filter filter,
            @Param("page") com.celesea.framework.util.Page page,
            @Param("sort") Sort sort);


    com.github.pagehelper.Page<WorkflowNotice> selectInitiator(
            @Param("filter") Filter filter,
            @Param("page") com.celesea.framework.util.Page page,
            @Param("sort") Sort sort);

    com.github.pagehelper.Page<WorkflowNotice> selectAllNotice(
            @Param("filter") Filter filter,
            @Param("page") com.celesea.framework.util.Page page,
            @Param("sort") Sort sort
    );
}
